/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.entity.course;

import java.util.List;

import com.idenger.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 章节Entity
 * @author chenlin
 * @version 2017-12-01
 */
public class EduSection extends DataEntity<EduSection> {
	
	private static final long serialVersionUID = 1L;
	private String courseId;		// 课程ID
	private String name;		// 名称
	private String describe;		// 描述
	private List<CourseVideoAndPracticeDto> courseVideoDtoList;//视频列表
	private List<CourseVideoAndPracticeDto> coursePracticeDtoList;//练习列表

	public List<CourseVideoAndPracticeDto> getCoursePracticeDtoList() {
		return coursePracticeDtoList;
	}

	public void setCoursePracticeDtoList(List<CourseVideoAndPracticeDto> coursePracticeDtoList) {
		this.coursePracticeDtoList = coursePracticeDtoList;
	}

	public List<CourseVideoAndPracticeDto> getCourseVideoDtoList() {
		return courseVideoDtoList;
	}

	public void setCourseVideoDtoList(List<CourseVideoAndPracticeDto> courseVideoDtoList) {
		this.courseVideoDtoList = courseVideoDtoList;
	}

	public EduSection() {
		super();
	}

	public EduSection(String id){
		super(id);
	}

	@Length(min=0, max=64, message="课程ID长度必须介于 0 和 64 之间")
	public String getCourseId() {
		return courseId;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}
	
	@Length(min=0, max=64, message="名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=124, message="描述长度必须介于 0 和 124 之间")
	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}
	
}